<template>
	<div class="cashier">
		<el-dialog 
			class="dialogClass" 
				:close-on-press-escape="false" 
				:visible.sync="dialogVisible" 
				:show-close="false" 
				fullscreen
				:modal="false"
				>
			<div style="padding: 30px 30px 0 30px">
				<!-- 结算车 -->
				<div style="display: flex; justify-content: space-between">
					<div>
						<div class="shop-cart-content">
							<div class="user-info">
								<el-button type="primary" @click="dialogUserVisible = true" v-if="Object.keys(user).length == 0">登记</el-button>
								<div v-else class="selected-user">
									<img style="width: 30px; height: 30px;" :src="getGender(user.gender)" alt="">
									<div>
										<p>{{user.username}}</p>
										<p>{{user.cardNo}}</p>
									</div>
									<i @click="unselectedUser" class="el-icon-circle-close"></i>
								</div>
							</div>

							<el-scrollbar ref="good-scrollbar" class="goods-list" :style="cartStyle">
								<template  v-if="cartList.length > 0">
									<div
										v-for="(item, index) in cartList"
										:key="index"
										style="position: relative; margin-bottom: 10px; background: #fff; border-radius: 6px; padding: 0 10px 10px 10px"
									>
										<div style="display: flex; font-size: 15px; align-items: center; justify-content: space-between">
											<div class="show1row" style="color: #28282d; width: 42%">{{ item.name }}</div>
											<div>X {{ item.num }}</div>
											<div style="font-family: DINAlternate-Bold">￥{{ item.total_price }}</div>
										</div>
										<div style="padding: 2px 10px; background: #f8f8f8; border-radius: 3px">
											<div
												v-for="item in 2"
												:key="item"
												style="
													display: flex;
													justify-content: space-between;
													align-items: center;
													padding: 2px 0;
													line-height: 24px;
													font-size: 13px;
													color: #8a8a8a;
												"
											>
												<div style="display: flex; align-items: center">
													<img src="https://s1.xptou.com/2022/09/26/6331ada113a7e.png" style="width: 20px; height: 20px" alt="" />
													<span style="color: #28282d">王五赵六</span>
												</div>
												<p>50%</p>
											</div>
										</div>
										<p class="btn-del" @click="delCartItem(index)"></p>
									</div>
								</template>
								<el-empty v-else description="暂无数据"></el-empty>
							</el-scrollbar>

							<div class="order-settlement">
								<div class="order-price">
									<p><span>合计数量：</span><span>0</span></p>
									<p><span>本次优惠</span><span>￥0</span></p>
									<p><span>应收金额</span><span>￥0</span></p>
								</div>
								<div class="order-btns"  ref="shopCar">
									<div>挂单</div>
									<div>结算</div>
								</div>
							</div>
						</div>
					</div>

					<!-- 产品列表 -->
					<div>
						<!-- 搜索 -->
						<!-- <div></div> -->
						<!-- 分类 -->
						<div>
							<div style="display: flex; align-items: center; justify-content: space-between">
								<div class="category-list">
									<span>项目</span>
									<span class="selected">产品</span>
									<span>预约</span>
								</div>
								<div @click="onClose"><i style="font-size: 28px; cursor: pointer" class="el-icon-close"></i></div>
							</div>
							<div class="category-sec-list">
								<p class="selected">美发</p>
								<p v-for="item in 30">美发</p>
							</div>
						</div>
						<!-- 产品 -->
						<el-scrollbar class="good-item-wapper" :style="goodsStyle">
							<el-card class="good-item" v-for="(item, index) in goodList" :key="index" @click.native="addCart(index, $event)">
								<img
									style="height: 80px; width: 80px"
									:src="item.cover"
									class="image"
								/>
								<div style="max-width: 200px; margin-left: 10px">
									<p class="show2row">{{ item.name }}</p>
									<p>库存 {{ item.stock }}</p>
									<p>￥{{ item.price }}</p>
								</div>
							</el-card>
						</el-scrollbar>
					</div>
				</div>
			</div>
		</el-dialog>
		<el-dialog 
			class="user-dialog"
				width="50%"
				append-to-body
				:visible.sync="dialogUserVisible" 
				>
			<User v-on:getUser="getUser"></User>
		</el-dialog>
	</div>
</template>

<script>

import User from "./../user/index"
export default {
	name: 'order',
	components: { User },
	data() {
		return {
			cartList: [],
			goodList: [
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
				{
					name: '推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿推拿',
					stock: 100,
					price: 58.0,
					cover: "https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
				},
			],
			user: {},
			dialogVisible: false,
			showTransition: false,
			dialogUserVisible: false,
			el: '',
			clientHeight: '',
			clientwidth: '',
		};
	},
	created() {},
	computed: {
		cartStyle() {
			return {
				height: this.clientHeight - 300 + 'px',
			};
		},
		goodsStyle() {
			return {
				height: this.clientHeight - 160 + 'px',
			};
		},
	},
	mounted() {
		let that = this;
		that.changeFixed();
		window.onresize = function () {
			that.changeFixed();
		};
	},
	watch: {
		clientHeight() {
			this.changeFixed();
		},
	},
	methods: {
		getGender(gender) {
			if(gender == "F") {
				return require("@/assets/icon/Def_Icon_Female_S.png");
			}
			return require("@/assets/icon/Def_Icon_Male_S.png");
		},
		unselectedUser() {
			this.user = {};
		},
		getUser(row) {
			this.user = row;
			this.dialogUserVisible =false;
		},
		onClose() {
			this.dialogVisible = false;
		},
		show() {
			this.dialogVisible = true;
		},
		//小球动画
		beforeEnter(el) {
			// 让小球移动到点击的位置，获取点击位置
			let dom = this.el;
			let rect = dom.getBoundingClientRect(); // 获取点击dom位置
			let x = rect.left - innerWidth * 0.62;
			let y = -(innerHeight - rect.top);
			el.style.display = 'block';
			el.style.transform = `translate3d(0,${y}px,0)`;
			let inner = el.querySelector('.inner');
			inner.style.transform = `translate3d(${x}px,0,0)`;
		},
		enter(el, done) {
			// 触发重绘
			document.body.offsetHeight;
			// 小球回家
			el.style.transform = `translate3d(0,0,0)`;
			let inner = el.querySelector('.inner');
			inner.style.transform = `translate3d(0,0,0)`;
			// 过渡完成后执行的事件
			el.addEventListener('transitionend', done);
		},
		afterEnter(el) {
			// 隐藏小球
			this.showTransition = false;
			el.style.display = 'none';
		},

		changeFixed() {
			this.clientHeight = document.body.clientHeight;
			this.clientwidth = document.body.clientwidth;
		},
		delCartItem(index) {
			this.cartList.splice(index, 1);
		},
		addCart(index, event) {
			var good = this.goodList[index];
			var temp = {
				name: good.name,
				num: 1,
				total_price: good.price,
			};
			this.cartList.push(temp);
			console.log(event, 111111);
			let x = event.pageX - event.target.offsetWidth / 2;
			let y = event.pageY - event.target.offsetWidth / 2;
			this.createBall(x, y, good.cover);
			this.$refs['good-scrollbar'].scrollTop =9999;
		},

		 /* 创建小球，添加动画 */
		createBall(left, top, img) {
			let bar = document.createElement("img");
			bar.src = img;
			bar.style.position = "absolute";
			bar.style.left = left + "px";
			bar.style.top = top + "px";
			bar.style.width = "80px";
			bar.style.height = "80px";
			bar.style.borderRadius = "0%";
			bar.style.zIndex = 99999;
			bar.style.boxShadow = "4px 3px 10px 3px rgb(147 147 147)";
			bar.style.transform  = "scale(1, 1)";
			bar.style.transition =
				"border-radius 0.6s linear, transform .6s linear, left .6s linear, top .6s cubic-bezier(0.5, -0.5, 1, 1)";

			document.body.appendChild(bar);
			// 添加动画属性
			setTimeout(() => {
				let target = this.$refs.shopCar;
				bar.style.left = target.offsetLeft + target.offsetWidth / 2 + "px";
				bar.style.top = target.offsetTop + "px";
				bar.style.transform = "scale(0.5, 0.5)";
				bar.style.borderRadius = "50%";
			}, 0);
			/**
			 * 动画结束后，删除自己
			 */
			bar.ontransitionend = function () {
				this.remove();
			};
		},
	},
};
</script>
<!-- 最多三个销售人员 -->
<style scoped lang="scss">
.shop-cart-content {
	width: 400px;
	// height: 100%;
	background-color: #fff;
	border: 1px solid #d7dde4;
	border-radius: 4px;
	overflow: hidden;
	position: relative;
}
.user-info {
	background-image: linear-gradient(180deg, #474747, #242424);
	box-shadow: inset 1px 1px 1px 0 hsl(0deg 0% 53% / 50%);
	border-radius: 6px 6px 0 0;
	height: 84px;
	padding: 7px 10px 0 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.goods-list {
	// height: 696px;
	// height: 503px;
	margin-top: 15px;
	overflow: auto;
}
.order-settlement {
}
.order-price {
	height: 108px;
	line-height: 1;
	font-weight: 400;
	border-top: 1px solid #e8eaec;
	padding: 20px;
}
.order-price p {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
}
.order-btns {
	// height: 80px;
	// padding: 20px;
	box-shadow: 0 -4px 13px 0 rgb(0 0 0 / 5%);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	cursor: pointer;
}

.order-btns div {
	width: 50%;
	padding: 20px;
	background: #f44e4e;
	color: #fff;
}
.order-btns div:first-child {
	background: #28282d;
}
.dialogClass {
	z-index: 2050 !important;
	.el-dialog__body {
		height: 100% !important;
		overflow: hidden;
	}
}

.good-item-wapper {
	display: flex;
	flex-wrap: wrap;
	margin-left: 30px;
}
.good-item {
	margin: 0 10px 10px 0;
	cursor: pointer;
	padding: 10px;
	min-width: 200px;
	max-width: 260px;
}
::v-deep .el-card__body {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	/* margin: 0 15px 15px 0; */
	/* box-shadow: 0 2px 2px 1px #ddd; */
	border-radius: 6px;
	padding: 2px 8px;
	/* width: calc(20% - 10px);*/
}
.seleted {
	background: #5cadff;
	border-color: transparent;
	color: #fff;
}
.btn-del {
	position: absolute;
	top: 0;
	right: 0;
	width: 28px;
	height: 28px;
	background: transparent url(https://static.bokao2o.com/wisdomDesk/images/Def_Icon_ServiceDel.png) 100% 0/28px no-repeat;
	cursor: pointer;
}
::v-deep .el-dialog__body {
	max-height: 100% !important;
	padding: 0px;
}

::v-deep .el-dialog__header {
	padding: 0;
}

::v-deep .good-item-wapper .el-scrollbar__view {
	display: flex;
	flex-wrap: wrap;
}
.show2row {
	text-overflow: ellipsis;

	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;

	display: -moz-box;
	-moz-line-clamp: 2;
	-moz-box-orient: vertical;

	overflow-wrap: break-word;
	word-break: break-all;
	white-space: normal;
	overflow: hidden;
}
.show1row {
	text-overflow: ellipsis;

	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;

	display: -moz-box;
	-moz-line-clamp: 2;
	-moz-box-orient: vertical;

	overflow-wrap: break-word;
	word-break: break-all;
	white-space: normal;
	overflow: hidden;
}
.category-list span {
	font-size: 16px;
	color: #5a5a5a;
	vertical-align: middle;
	padding: 0 20px;
	text-align: center;
	height: 40px;
	cursor: pointer;
}
.category-list span.selected {
	font-size: 20px;
	color: #28282d;
}

.category-sec-list {
	padding: 12px 0 12px 20px;
	-webkit-transition: -webkit-transform 0.7s, background 0.7s, height 0.7s;
	border-radius: 5px;
	background: #f8f8f8;
	cursor: pointer;
	display: flex;
	flex-wrap: wrap;
	margin: 20px 0;
}
.category-sec-list p {
	color: #5a5a5a;
	margin-right: 16px;
}
.category-sec-list p.selected {
	color: #47bf7c;
}

.user-dialog {
	z-index: 2080 !important;
	.el-dialog__body {
		height: 100% !important;
		overflow: hidden;
	}
}

.selected-user {
    background: #d6c361 url(https://static.bokao2o.com/wisdomDesk/images/Def_Icon_VIP_Small.png) 90%/82px no-repeat;
    border-radius: 6px;
    padding: 3px 12px;
    cursor: pointer;
	display: flex; 
	align-items: center;
}
.selected-user i {
	font-size: 23px;
	color: #292020;
}
.selected-user div{
	margin: 0 8px;
}
</style>
